ARD2  1.00 for Rev B. Hardware
Airbag Reference Demonstrator using MPC5604P
Deployment.c File Reference

Deployment state for the ARD2 application. More...

#include "derivative.h"
#include "Compile_Options.h"
#include "Deployment.h"
#include "SM.h"
#include "SBC_AL.h"
#include "HAL.h"
#include "MailScheduler.h"
#include "Application_Globals.h"
#include "SIU.h"
#include "Labview.h"

Functions

uint32_t u32fnStateDeployment (void)
 Deployment state.
uint32_t u32fnDeploymentStatusReport (const uint16_t cu16ExpectedFiring, uint16_t *pu16FiredSquibs, uint8_t *pu8NextState)
 Figures out what squibs were (or not) fired.
void vfnGUISendDeploymentEvent (void)
 Sends a verbose message to the GUI in case of deployment.

Variables

const uint16_t cau16PreDeploymentValidStates []

Detailed Description

Deployment state for the ARD2 application.

SystemTest state for the ARD2 application.

Copyright (C) 2011 Freescale Semiconductor Freescale Confidential Proprietary

Author:
Freescale Semiconductor
SASD Automotive
r11515
Version:
Date:
Warning:
(If needed)

History:


Function Documentation

uint32_t u32fnDeploymentStatusReport ( const uint16_t  cu16ExpectedFiring,
uint16_t *  pu16FiredSquibs,
uint8_t *  pu8NextState 
)

Figures out what squibs were (or not) fired.

Parameters:
cu16ExpectedFiring,:Mask list of squibs that should fire.
pu16FiredSquibs,:Pointer to a mask list of all squibs that have been fired.
pu8NextState,:Pointer to memory location where the next state value will be determined based on the fired squibs.
Returns:
u32Status: CLEAR if all went well, STATUS_DATA_TRANSFER_ERROR, STATUS_SCHEDULER_PROBLEM, or the list of squibs that were expected to fire but didn't otherwise.
uint32_t u32fnStateDeployment ( void  )

Deployment state.

Parameters:
Void.
Returns:
u32Status: Clear if it is a valid source; SM_STATE_IS_EXECUTING if this state was entered while another one was already executing; SM_INVALID_SOURCE_STATE if the source state is not in the pu16ValidStateList; other error codes are also possible.
void vfnGUISendDeploymentEvent ( void  )

Sends a verbose message to the GUI in case of deployment.

Parameters:
None
Returns:
Void.

Variable Documentation

Initial value:
{
  SM_STATE_ERROR, SM_STATE_DECISION }

List of valid source states for this state